package innerclass;

public class StaticInnerClass {
    static int age;
    String name;
    // 静态内部类 - 类比静态变量
    static class Inner {
        private int age;
        public void test() {
            System.out.println(age);
//            System.out.println(name);
        }
    }

    public void fun() {
        Inner inner = new Inner();
    }
}

class Test1 {
    public static void main(String[] args) {
        StaticInnerClass.Inner inner = new StaticInnerClass.Inner();
    }
}